package com.yue92.datalife.repository;

import com.yue92.datalife.model.Record;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RecordRepository extends JpaRepository<Record, Long> {

    List<Record> findByUserIdAndDisplay(Long userId, Boolean display, Sort sort);
}
